# -*- coding: utf-8 -*-
import scrapy
from todayMoive.items import TodaymoiveItem

class WhhanmoivespiderSpider(scrapy.Spider):
    name = 'whHanMoiveSpider'
    allowed_domains = ['xiashu.cc']
    start_urls = ['https://www.xiashu.cc/209558/#lastchapter']

    def parse(self, response):
        subSelector = response.xpath('//*[@id="toplist"]/li')
        items = []
        for xsub in subSelector:
            item = TodaymoiveItem();
            item['bookName'] = xsub.xpath('./a/text()').extract();
            items.append(item);
        return items
        
